package com.gxa.mapper.parking;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.dto.parking.PSpaceSearchDto;
import com.gxa.dto.parking.ParkingSpacesDto;
import com.gxa.entity.parking.PRegion;
import com.gxa.entity.parking.Parking;
import com.gxa.entity.parking.ParkingSpaces;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Mapper
public interface ParkingSpacesMapper extends BaseMapper<ParkingSpaces> {

    List<ParkingSpacesDto> queryAll(PSpaceSearchDto pSpaceSearchDto);

    ParkingSpacesDto queryById(Integer id);

    //查询所有的停车场
    List<Parking> queryParking();

    //根据停车场的编码查询区域
    List<PRegion> queryPRegion(@Param("parking_num") String parkingNum);

//    List<ParkingSpaces> seectByCondition();

}
